import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    navTwoList:[],
    title:"",
    //商城的banner侧边导航栏
    shopLeftNav:[],
    //登录状态
    flag: sessionStorage.getItem("user") ? true : false,
  },
  mutations: {
    //商城的banner侧边导航栏
    leftnav(state,payload){
      state.shopLeftNav = payload
    },
    //更改登录状态值的信息
    userLogin(state){
      state.flag = true
    }
  },
  actions: {
  },
  modules: {
  }
})